<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:c="http://java.sun.com/jstl/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:a4j="http://richfaces.org/a4j">

<ui:composition>
	<h:form>
		<rich:panel>
			<f:facet name="header">
				<h:outputText value="#{resourceApp.crext_titulo_lista}"></h:outputText>
			</f:facet>
				
			  <c:if test="${empty crextListaBean.crextLista}">
				<rich:panel>
					<div align="center">
					<h:graphicImage value="/img/info.gif" /><h:outputLabel
						value="#{resourceApp.crext_sin_info}" />
					</div>
				</rich:panel>
			</c:if>
			  <c:if test="${!empty crextListaBean.crextLista}">
				
				<rich:panel>
		            
		            <h:panelGrid columns="4" width="100%">
		            	<h:outputText value="#{resourceApp.crext_total_aut}"/>
		            	<h:outputText value="0.00"/>
		            </h:panelGrid>

		        </rich:panel>
				<rich:dataTable id="idTablaAutorizaciones" onRowMouseOver="this.style.backgroundColor='#F1F1F1'"
					onRowMouseOut="this.style.backgroundColor='#{a4jSkin.tableBackgroundColor}'"
					cellpadding="0" cellspacing="0" width="100%" border="0" value="#{crextListaBean.crextLista}" 
					var="aut" rows="20">		
					<rich:column sortBy="#{aut.extdis}" headerClass="encabezadoCol">
						<f:facet name="header"><h:outputText value="#{resourceApp.crext_extdis}"></h:outputText></f:facet>
						<h:outputText value="#{aut.extdis}"/>
					</rich:column>
					<rich:column sortBy="#{aut.extccm}" headerClass="encabezadoCol">
						<f:facet name="header"><h:outputText value="#{resourceApp.crext_extccm}"></h:outputText></f:facet>
						<h:outputText value="#{aut.extccm}"/>
					</rich:column>
					<rich:column sortBy="#{aut.extter}" headerClass="encabezadoCol">
						<f:facet name="header"><h:outputText value="#{resourceApp.crext_extter}"></h:outputText></f:facet>
						<h:outputText value="#{aut.extter}"/>
					</rich:column>
					<rich:column sortBy="#{aut.extftr}" headerClass="encabezadoCol">
						<f:facet name="header"><h:outputText value="#{resourceApp.crext_extftr}"></h:outputText></f:facet>
						<h:outputText value="#{aut.extftr}"/>
					</rich:column>
					<rich:column sortBy="#{aut.exthtr}" headerClass="encabezadoCol">
						<f:facet name="header"><h:outputText value="#{resourceApp.crext_exthtr}"></h:outputText></f:facet>
						<h:outputText value="#{aut.exthtr}"/>
					</rich:column>
					<rich:column sortBy="#{aut.extfco}" headerClass="encabezadoCol">
						<f:facet name="header"><h:outputText value="#{resourceApp.crext_extfco}"></h:outputText></f:facet>
						<h:outputText value="#{aut.extfco}"/>
					</rich:column>
					<rich:column sortBy="#{aut.extcme}" headerClass="encabezadoCol">
						<f:facet name="header"><h:outputText value="#{resourceApp.crext_extcme}"></h:outputText></f:facet>
						<h:outputText value="#{aut.extcme}"/>
					</rich:column>
					<rich:column sortBy="#{aut.extcde}" headerClass="encabezadoCol">
						<f:facet name="header"><h:outputText value="#{resourceApp.crext_extcde}"></h:outputText></f:facet>
						<h:outputText value="#{aut.extcde}"/>
					</rich:column>
					<rich:column headerClass="encabezadoCol"> 
						<f:facet name="header">
							<h:outputText value="#{resourceApp.lbl_accion}" />
						</f:facet>
						<h:panelGrid columns="4">
							<a4j:commandLink action="#{crextListaBean.visualizar}">
								<f:param name="RRN" value="#{aut.RRN}" />
								<h:graphicImage value="/imagenes/icons/masInfo.gif" title="Visualizar"/>
							</a4j:commandLink>
						</h:panelGrid>
					</rich:column>	
					</rich:dataTable>
				<rich:spacer height="30" />
				<rich:datascroller align="center"  for="idTablaMoras" maxPages="20" />
			</c:if>
      	</rich:panel>
	</h:form>
</ui:composition>
</html>
